package GUI;

import java.awt.Component;

import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.table.DefaultTableCellRenderer;

/**
 * Set table style 
 * @author LoLo
 *
 */
public class MyTableRenderer extends DefaultTableCellRenderer { 
	
	public Component getTableCellRendererComponent(JTable table, Object value, 
	boolean isSelected, boolean hasFocus, int row, int column) 
	{ 
		super.getTableCellRendererComponent(table, value, isSelected, hasFocus, 
		row, column);
		
		this.setHorizontalAlignment(JLabel.CENTER); 

		return this; 
	} 
}